package top.whysu.rongcloud.annotation;


import top.whysu.rongcloud.validtor.DataDictionaryValidtor;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @version: 1.00.00
 * @description: 数据字典校验
 * @copyright:
 * @company:
 * @author:
 * @date:
 */
@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.ANNOTATION_TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {DataDictionaryValidtor.class})
@Documented
public @interface DataDictionaryVaildAnnotation {
    String message() default "字典不匹配";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
    Class<?>[] target() default {};
    boolean required()  default false;
}
